package com.itheima.mapper;

import com.itheima.domain.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {

    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<Map> getOrderSettingByMonth(String date);
    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

    OrderSetting findByOrderDate(Date parseString2Date);

    /*更新可预约人数减一*/
    void setOrderNumber(OrderSetting orderSetting);

    /*更新可预约人数加一*/
    void setOrderNumberTo(OrderSetting orderSetting);
}
